package com.threeti.mecool.core.domain.model.sellinto;

/** 
 * 堆头情况<p>
 * 
 * TG和StockBase均为堆头的英文缩写
 */
public enum TGStockBaseDesc {
	/** 无 */
  TG_NONE,
	
  /** 其它 */
  TG_OTHER,
	
	/** 形象堆 */
	TG_FIGURE,
	
  /** 联合堆 */
	TG_UNION;
  
  public static TGStockBaseDesc valueOf(int tg) {
    if (tg == TGStockBaseDesc.TG_NONE.ordinal()) {
      return TGStockBaseDesc.valueOf(TGStockBaseDesc.TG_NONE.name());
    } else if (tg == TGStockBaseDesc.TG_OTHER.ordinal()) {
      return TGStockBaseDesc.valueOf(TGStockBaseDesc.TG_OTHER.name());
    } else if (tg == TGStockBaseDesc.TG_FIGURE.ordinal()) {
      return TGStockBaseDesc.valueOf(TGStockBaseDesc.TG_FIGURE.name());
    } else {
      return TGStockBaseDesc.valueOf(TGStockBaseDesc.TG_UNION.name());
    }
  }
}
